package com.niiwoo.civet.mobile.vo.response.myloan;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@ApiModel
public class LoanPlanDateResponseVO {
    /**
     * 应还时间年月
     */
    @ApiModelProperty(value = "应还时间年月",  required = true)
    private String yearMouth;

    /**
     * 还款计划
     */
    @ApiModelProperty(value = "还款计划",  required = true)
    private List<LoanPlan> loanPlans;

    @Getter
    @Setter
    @ApiModel
    public static class LoanPlan{
        /**
         * 标的ID
         */
        @ApiModelProperty(value = "标的ID",  required = true)
        private Long projectId;

        /**
         * 应还款日期
         */
        @ApiModelProperty(value = "应还款日期",  required = true)
        private Date refundDate;


        /**
         * 应还款金额
         */
        @ApiModelProperty(value = "应还款金额",  required = true)
        private BigDecimal amount;

        /**
         * h5Url
         */
        @ApiModelProperty(value = "h5Url",  required = true)
        private String h5Url;
    }
}
